﻿
cmake_minimum_required(VERSION 3.14)

# fmt
#add_subdirectory(fmt/fmt-8.0.1)

#enable_testing()
#set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
#add_subdirectory(googletest)

include(FetchContent)
FetchContent_Declare(fmt
  SOURCE_DIR ${PROJECT_SOURCE_DIR}/contrib/fmt/fmt-8.0.1
  GIT_TAG master
)
FetchContent_MakeAvailable(fmt)


FetchContent_Declare(googletest
  SOURCE_DIR ${PROJECT_SOURCE_DIR}/contrib/googletest
  GIT_TAG master
)
FetchContent_MakeAvailable(googletest)

FetchContent_Declare(json
  SOURCE_DIR ${PROJECT_SOURCE_DIR}/contrib/nlohmann_json-3.10.2
  GIT_TAG master
)
FetchContent_MakeAvailable(json)


#FetchContent_Declare(eigen
#  SOURCE_DIR ${PROJECT_SOURCE_DIR}/contrib/eigen-3.3.9
#  GIT_TAG master
#)
#FetchContent_MakeAvailable(eigen)
#set(EIGEN_BUILD_DOC OFF)
#set(BUILD_TESTING OFF)
#set(EIGEN_BUILD_PKGCONFIG OFF)

add_subdirectory(getpot)